<?php if (!defined('LEGAL_INNER_USE')){die('ILLEGAL USING!');}?>
<div class="bodyCont">
	<div class="container">
		<div class="row-fluid">
			<ul class="breadcrumb">
				<li><a href="<?= makeUrl('index')?>">首页</a> <span class="divider">/</span></li>
				<li<?= isset($_GET['cateId'])?'':' class="active"'?>><a href="<?= makeUrl('products')?>">所有产品</a></li>
				<?= $breadcrumb?>
			</ul>
		</div>
		<div class="well pInfo">
			<div class="row-fluid">
				<div class="span4 img">
					<img id="mainImg" src="<?= HTTP_ROOT.OFFICIAL_SHOP_DIR.$original_img?>" alt="<?= $title?>" />
				</div>
				<div class="span8 info">
					<h1><?= $goods_name?></h1>
					<table class="table table-striped">
						<tr><td>商品货号：</td><td><?= $goods_sn?></td></tr>
						<tr><td>商品售价：</td><td class="price"><?= $shop_price?></td></tr>
						<tr><td>商品相册：</td><td><ul class="gallery">-</ul></td></tr>
						<?php
						if (isset($products_desc_attrs) && !empty($products_desc_attrs)){
							foreach($products_desc_attrs as $v){
								echo '<tr><td>'.$v["attr_name"].'：</td><td>'.$v["attr_value"].'</td></tr>';
							}
						}
						?>
					</table>
					<div class="acts">
						<a target="_blank" href="<?= makeUrl('officialShopProductInfo', 'id='.$goods_id.'&title='.urlencode($goods_name))?>" class="btn btn-warning">去商城购买</a>
					</div>
				</div>
			</div>
		</div>
		<div class="desc well">
			<?php
			echo $goods_desc;
			if (sizeof($goods_gallery)>0){
				echo '<ul class="gallery">';
				foreach($goods_gallery as $v){
					echo '<li><img src="'.HTTP_ROOT.OFFICIAL_SHOP_DIR.$v.'" alt="'.$title.'" /></li>';
				}
				echo '</ul>';
			}
			?>
			<hr>
			<div class="keywords">关键词：<?= $keywords?></div>
		</div>
	</div>
</div>
